import junit.framework.TestCase;


public class TST05 extends TestCase{

	public void testNom() {
		
		String nomVide="";
		String nomValide;
		Client c = new Client();
		nomValide=c.getNom();
		c.setNom(nomVide);
		assertEquals("Nom invalide",nomValide,c.getNom() );
		
			}
public void testPrenom() {
		
		String prenomVide="";
		String prenomValide;
		Client c = new Client();
		prenomValide=c.getPrenom();
		c.setNom(prenomVide);
		assertEquals("Prenom invalide",prenomValide,c.getPrenom() );
		}

public void testAgeNonNegatif() {
	
	int age=-5;
	int ageValide;
	Client c = new Client();
	ageValide=c.getAge();
	c.setAge(age);
	assertEquals("Age invalide",ageValide,c.getAge() );
	
		}

public void testAge() {
	
	int age=5;
	Client c = new Client();
	c.setAge(age);
	assertEquals("Age invalide",age,c.getAge() );
	
		}
public void testMail() {
	
	String mailVide="blabla";
	String mailValide;
	Client c = new Client();
	mailValide=c.getEmail();
	c.setEmail(mailVide);
	assertEquals("Email invalide",mailValide,c.getEmail() );
	}

}
